package com.weblog.web.model.vo.article;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.weblog.web.model.vo.tag.QueryTagListItemRspVO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class QueryArticleDetailRspVO {
    private String title;
    private String content;
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date updateTime;
    private Long categoryId;
    private String categoryName;
    private Long readNum;
    private List<QueryTagListItemRspVO> tags;
    private QueryArticleLinkRspVO preArticle;
    private QueryArticleLinkRspVO nextArticle;
}
